<template>
  <div>
    <h2>条件渲染</h2>

    <span v-if="age < 18">18岁以下</span>
    <span v-else-if="age==55">55岁</span>
    <span v-else>错误</span>
  </div>
</template>

<script setup lang="ts">
const age = 55
</script>

<style scoped>

</style>